<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>小区信息管理</title>
    <th:block th:include="common :: headerCss"></th:block>
</head>
<body>
<form class="demoTable layui-form" lay-filter="example">
    <div class="layui-form-item">
        <div class="layui-input-inline">
            <input class="layui-input" name="name" id="name" autocomplete="off" placeholder="小区名名称">
        </div>
        <div class="layui-input-inline">
            <select name="parentAreaCode" lay-filter="prov">
                <option value="">请选择所在省份</option>
                <option th:each="prov : ${provList}" th:value="${prov.getAreaCode()}" th:text="${prov.getAreaName()}"></option>
            </select>
        </div>
        <div class="layui-input-inline">
            <select name="areaCode">
                <option value="">请选择所在市</option>
            </select>
        </div>
        <button class="layui-btn" lay-submit="" lay-filter="searchBtn"><i class="layui-icon layui-icon-search"></i>搜索</button>
    </div>
</form>
<table class="layui-hide" id="tableId" lay-filter="tableBar"></table>
<!--用户认证以后显示-->
<div shiro:authenticated>
    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <button shiro:hasPermission="system:communityInfo:edit" class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon layui-icon-add-1"></i>添加</button>
        </div>
    </script>
    <script type="text/html" id="barDemo">
        <a shiro:hasPermission="system:communityInfo:edit" class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
        <a shiro:hasPermission="system:communityInfo:del" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
    </script>
</div>
<!--引入添加或者修改界面-->
<div th:replace="communityInfo/addAndEdit :: addAndEditDiv"></div>

</body>
<div th:include="common :: footJs"></div>
<script th:src="@{/static/js/communityInfo/list.js}" th:inline="none"></script>

</html>